home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / ch_4.4 / xfm / fm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-11  |  635 b   |  40 lines

  1. /*
  2.  * F(ast)M(oments).H
  3.  *
  4.  * header file for xfm.c
  5.  */
  6.  
  7. #define    MDIM        4                 /* moment matrix dim: m00 - m33 */
  8.  
  9. /* 
  10.  * fm.h
  11.  * 
  12.  * Practical Algorithms for Image Analysis
  13.  * 
  14.  * Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
  15.  */
  16.  
  17.  
  18.  
  19. #if defined(WIN32)
  20. #pragma warning( disable : 4244 )
  21. #endif
  22. static float cm[MDIM][MDIM] =
  23. {
  24.   {1.0, 0.0, 0.0, 0.0},
  25.   {1.0, 1.0, 0.0, 0.0},
  26.   {1.0, 3.0, 2.0, 0.0},
  27.   {1.0, 7.0, 12.0, 6.0}
  28. };
  29.  
  30. static float cmt[MDIM][MDIM] =
  31. {
  32.   {1.0, 1.0, 1.0, 1.0},
  33.   {0.0, 1.0, 3.0, 7.0},
  34.   {0.0, 0.0, 2.0, 12.0},
  35.   {0.0, 0.0, 0.0, 6.0}
  36. };
  37. #if defined(WIN32)
  38. #pragma warning( default : 4244 )
  39. #endif
  40.